<template>
  <div>我是子组件2
    <hr>

      <slot  :s="user"> </slot>
  </div>


</template>

<script setup>
import { ref } from "vue";

let user = ref([3, 4, 5]);
// 暴露 user 数据给父组件
defineExpose({
  user
});
</script>

<style lang="scss" scoped></style>
